#import "AppEnvironment.h"

@implementation AppEnvironment

+ (UIUserInterfaceIdiom)userInterfaceIdiom
{
    return [[UIDevice currentDevice] userInterfaceIdiom];
}

+ (float)systemVersion
{
    return [[UIDevice currentDevice].systemVersion floatValue];
}

+ (CGSize)screenSize
{
    return [[UIScreen mainScreen] bounds].size;
}

+ (NSString*)applicationPath
{
    return NSHomeDirectory();
}

+ (NSString*)documentPath
{
    return [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
}

+ (NSString*)bundlePath
{
    return [[NSBundle mainBundle] bundlePath];
}

@end
